<?php
/**
 * 平台抽象基类
 *
 * @author   ame-option
 * @version  1.0
 */
namespace platform\driver;

/**
 * 缓存基础类
 */
abstract class Driver
{
    /**
     * webSocket接口地址
     * @var string
     */
    private $stream = '';

    /**
     * 获取平台支持的所有币种
     * @access public
     * @return mixed
     */
    abstract public function symbols();

    /**
     * 下单交易
     * @access public
     * @return mixed
     */
    abstract public function buy(...$data);

    /**
     * 取消订单
     * @access public
     * @return mixed
     */
    abstract public function cancel(...$orderId);

    /**
     * 查询某个订单详情
     * @access public
     * @return array
     */
    abstract public function order(...$orderId);
}
